// uno.config.ts
import {
  defineConfig,
  presetAttributify,
  presetIcons,
  presetTypography,
  presetUno,
  presetWebFonts,
  transformerDirectives,
  transformerVariantGroup,
} from 'unocss'

export default defineConfig({
  content: {
    pipeline: {
      include: [
        // the default
        /\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
        'src/**/*.{js,ts}',
      ],
    },
  },

  shortcuts: {
    'flex-center': ['flex justify-center items-center'],
    'flex-col-center': ['flex  items-center flex-col'],
    bd: ['border border-solid border-black/7'],
    'bd-t': ['border-0 border-t-1 border-solid border-black/7'],
    'bd-r': ['border-0 border-r-1 border-solid border-black/7'],
    'bd-b': ['border-0 border-b-1 border-solid border-black/7'],
    'bd-l': ['border-0 border-l-1 border-solid border-black/7'],
  },
  theme: {
    colors: {
      primary: '#0052cc',
    },
  },
  rules: [],
  presets: [
    presetUno(),
    presetAttributify(),
    presetIcons({
      prefix: [''],
      extraProperties: {
        display: 'inline-block',
      },
    }),
    presetTypography(),
    presetWebFonts({
      fonts: {},
    }),
  ],
  transformers: [transformerDirectives(), transformerVariantGroup()],
})
